/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class FingerprintReader {
    static categoryCode = '010120001';

    static categoryName = '指纹识别器';

    device = {};

    opts = {};

    _to = undefined;

    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device;
        this.opts = opts;
        this._to = to;
    }

    get categoryCode() {
        return FingerprintReader.categoryCode;
    }

    get categoryName() {
        return FingerprintReader.categoryName;
    }

    getDeleteFingerprint(params) {
        return command({
            method: 'getDeleteFingerprint',
            methodId: 'pdNCEb2I',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getFingerInputTimes(params) {
        return command({
            method: 'getFingerInputTimes',
            methodId: 'phEc5GQW',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getFingerprintInputValue(params) {
        return command({
            method: 'getFingerprintInputValue',
            methodId: 'pgh0wyrR',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getFingerprintVerification(params) {
        return command({
            method: 'getFingerprintVerification',
            methodId: 'ptRSMxuz',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'p1vZiO11',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWorkMode(params) {
        return command({
            method: 'getWorkMode',
            methodId: 'pDrwAj3o',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setDeleteFingerprint(params) {
        return command({
            method: 'setDeleteFingerprint',
            methodId: 'pGoxNfEk',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setFingerInputTimes(params) {
        return command({
            method: 'setFingerInputTimes',
            methodId: 'pZgu2F5q',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setFingerprintInputValue(params) {
        return command({
            method: 'setFingerprintInputValue',
            methodId: 'pUPQYtOb',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'peH3KmYG',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setWorkMode(params) {
        return command({
            method: 'setWorkMode',
            methodId: 'ppAruPNx',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default FingerprintReader;
